import axios from '@/api/axios'
import urls from './urls'
// import baseUrl from '@/api/baseUrl'
// const baseUrl = 'http://yapi.yunzhonghe.com/mock/258'
const log = {
    list (params) {
        return axios.get(urls.list, {
            params, headers: {
                OperationCode: 'order_manage'
            }
        })
    },
    add (params) {
        return axios.post(urls.add, params, {
            headers: {
                OperationCode: 'order_manage'
            }
        })
    },
    edit (params) {
        return axios.post(urls.edit, params, {
            headers: {
                OperationCode: 'order_manage'
            }
        })
    },
    remove (params) {
        return axios.post(urls.remove, params, {
            headers: {
                OperationCode: 'order_manage'
            }
        })
    }
}
export default log
